# -*- coding: utf-8 -*-
"""
    初始化app基本配置
"""

from flask import Flask
from framework import setting
from .exts import db
from framework.views import view_blue
from framework.api import api_blue

app = Flask(__name__)
# 加载配置文件
app.config.from_object(setting)


# 注册蓝图
app.register_blueprint(view_blue)
app.register_blueprint(api_blue)

# db绑定app
db.init_app(app)